.client-container{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main{
    width: 70%;
    height: 89%;
    background-color: rgb(238,238,238);
    border-radius: 10px;
    display: flex;
    z-index: 2;
}
.left{
    width: 25%;
    height: 100%;
    background-color: rgb(46,50,56);

    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.right{
    width: 75%;
    height: 100%;
}
.cover{
    height: 100%;
    width: 100%;
    background-image: url("../img/1.jpg");
    background-repeat: no-repeat;
    background-position: center,center;
    background-size: cover;
    /*让cover和main重叠*/
    /*position能让div脱离默认的从上到下的规则，可以通过坐标的形式来指定位置*/
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /*加入滤镜使背景模糊*/
    filter: blur(3px);
}
.main .left .user{
    height: 10%;
    font-size: 20px;
    line-height: 80px;
    color: white;
    padding: 0 20px;
}
.main .left .search{
    height: 5%;
    padding: 0 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}
.main .left .search input{
    height: 80%;
    width: 80%;
    line-height: 80%;
    font-size: 14px;
    color: white;
    background-color: rgb(38,41,46);

    /*去除边框和轮廓线*/
    border: none;
    outline: none;
/*控制输入框的文字和左边有边距*/
    padding-left: 2px;
    border-radius: 5px;
}
.main .left .search button{
    height: 80%;
    width: 20%;
    border: none;
    outline: none;
    border-radius: 5px;
    background-color: rgb(38,41,46);
    background-image: url("../img/sousuo.png");
    background-repeat: no-repeat;
    background-size: 20px,20px;
    background-position: center,center;
}
.main .left .search button:active{
    background-color: grey;
}

.main .left .tab{
    height: 7%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main .left .tab .tab-session{
    height: 100%;
    width: 50%;

    background-image: url("../img/会话.png");
    background-repeat: no-repeat;
    background-size: 30px,30px;
    background-position: center center;
}
.main .left .tab .tab-friend{
    height: 100%;
    width: 50%;

    background-image: url("../img/好友.png");
    background-repeat: no-repeat;
    background-size: 30px,30px;
    background-position: center center;
}

.main .left .list{
    height: 75%;

    /*当内容多就会自动加入滚动条*/
    overflow: auto;
}

.main .left .list li {
    height: 13%;
    padding: 10px 20px;
    color: white;
    /*使得每个会话之间有条黑色的分割线*/
    border-top: 1px solid black;
}
.main .left .list li .selected{
    background-color: rgb(80, 187, 199);
}

.main .left .list li h3,
.main .left .list li p{
    height: 50%;
    font-size: 14px;
    line-height: 50%;
}

.main .left .list li h4{
    height: 100%;
    line-height: 100%;
    font-size: 20px;
}

/*自动隐藏*/
.hide{
    display: none;
}

/*隐藏滚动条*/
::-webkit-scrollbar{
    display: none;
}


.main .right .title{
    height: 7%;
    line-height: 200%;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.main .right .message-show {
    height: 68%;

    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;

    overflow: auto;
}

.main .right .message-show .message {
    margin-top: 5px;
    display: flex;
}
/*让样式靠左*/
.main .right .message-show .message-left{
    justify-content: flex-start;
}
/*让样式靠右*/
.main .right .message-show .message-right{
    justify-content: flex-end;
}

.main .right .message-show .message .box{
    width: 70%;
}
.main .right .message-show .message .box h4{
    /*去掉加粗*/
    font-weight: normal;
    height: 5%;
    line-height: 5%;
    font-size: 16px;
}
.main .right .message-show .message .box p{
    padding: 20px;
    border-radius: 10px;
}

.main .right .message-show .message-right h4{
    float: right;
}
/*给左右侧消息设置背景颜色*/
.main .right .message-show .message-right .box p{
    background-color: rgb(150,220,130);
}
.main .right .message-show .message-left .box p{
    background-color: white;
}



.main .right .message-input{
    /*设置成块级元素才能调整样式*/
    display: block;
    width: 100%;
    height: 20%;
    border: none;
    outline: none;

    margin-top: 3px;
    background-color: rgb(222, 222, 222);
    padding: 3px;
    /*不允许调整大小*/
    resize: none;
}

.main .right .ctrl{
    display: flex;
    justify-content: flex-end;
}
.main .right .ctrl button{
    height: 100%;
    width: 40%;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.main .right .ctrl button:active{
    background-color: beige;
}